<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script><!-- 配合demo03使用 -->
    <script src="demo03.js"></script>
</head>

<body>
    <!--form表单的登录操作-->
    <form action="http://127.0.0.1:8080/login" method="post">
        <input id="username" type="text" name="username" value="1145"placeholder="请输入用户名"><br/>
        <input id="password" type="password" name="password"><br/>
        <button type="submit">登录(get)</button>
        <button type="submit" id="btn_post">登录(post)</button>
    </form>
</body>

</html>